package com.ruoyi.place.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.enums.PlaceType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房屋信息业务对象 place_info
 *
 * @author strongme
 * @date 2023-05-02
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PlaceInfoBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    private PlaceType placeType;

    /**
     * 单位（地区）
     */
    @NotBlank(message = "单位（地区）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String area;

    /**
     * 房屋名称
     */
    @NotBlank(message = "房屋名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 房屋类型
     */
    private String type;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 所在村社
     */
    private String szcs;

    @NotNull(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fzr;


}
